package com.lizhi.yun.base.task;/**
 * @program: sfrobot-html
 * @name ScheduledTasks
 * @description: 定时任务
 * @author: lizhi
 * @create: 2020-04-23 11:23
 */

import lombok.extern.slf4j.Slf4j;

import java.util.Date;

/**
 *@program: sfrobot-html
 *@name ScheduledTasks
 *@description: 定时任务
 *@author: lizhi
 *@create: 2020-04-23 11:23
 */
@Slf4j
//@Configuration
//@EnableScheduling
public class ScheduledTasks {

    private static final Date date = new Date();

    /**
     *功能描述  周期五秒
     * @author lizhi
     * @date 2020/4/23
     * @param
     * @return void
     */
//    @Scheduled(cron = "0/5 * * * * ?")
    public void getTime(){
        log.info("现在时间date:{}",date);
    }
}
